Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Eng 735 ai xplain sdk improve error log messages #271

Open
wants to merge 1 commit into
base: development
Choose a base branch
from

Conversation

xainaz
Copy link
Collaborator

@xainaz xainaz commented Oct 10, 2024

No description provided.

@xainaz xainaz changed the base branch from main to development October 10, 2024 11:18
Copy link
Collaborator

@thiago-aixplain thiago-aixplain left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The implementation is not according to the API key style. Please pay attention on how it is done there.

Also, please run pre-commit. The changes are not formatted accordingly.

try:
r = _request_with_retry("post", url, headers=headers, json=payload)
resp = r.json()
if 200 <= r.status_code < 300:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This condition should be outside the try catch. Exactly how it is in the API Key factory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants